package chain;

import com.alibaba.fastjson.JSON;
import org.junit.Test;

/**
 * https://blog.csdn.net/u013822349/article/details/81128307
 */
public class ClientTest {
    @Test
    public void test1(){
        User2 u=new User2().setAge(1).setName("name");
    }

    @Test
    public void test2(){
        User3 u=User3.of().setAge(20);
        System.out.println(JSON.toJSONString(u));
    }

    @Test
    public void test(){

    }
}
